import Vue from "vue";
import dialog from "./index.vue";

const modifyPassword = function (callback, oldForm = {}) {
  const customDialog = Vue.extend(dialog);
  const instance = new customDialog({}).$mount();
  document.body.appendChild(instance.$el);
  instance.oldForm = oldForm;
  instance.callback = callback || function () {};
  instance.visible = true;
};

export default modifyPassword;
